#-------------------------------------------------------------------
# This file is part of the CMake build system for ogre-7z 
# (7zip (LZMA) archives support for Ogre 3D)
#-------------------------------------------------------------------

project (Ogre-7ziplib C)

# define header files for the library
set (HEADER_FILES
	common/7z.h
	common/7zBuf.h
	common/7zCrc.h
	common/7zFile.h
	common/7zVersion.h
	common/Bcj2.h
	common/Bra.h
	common/CpuArch.h
	common/Lzma2Dec.h
	common/LzmaDec.h
	common/Ppmd.h
	common/Ppmd7.h
	common/Types.h
)

# define source files for the library
set (SOURCE_FILES
	common/7zBuf.c
	common/7zCrc.c
	common/7zCrcOpt.c
	common/7zDec.c
	common/7zFile.c
	common/7zIn.c
	common/7zStream.c
	common/Bcj2.c
	common/Bra86.c
	common/CpuArch.c
	common/Lzma2Dec.c
	common/LzmaDec.c
	common/Ppmd7.c
	common/Ppmd7Dec.c
)

# setup target
add_library (Ogre-7ziplib STATIC ${HEADER_FILES} ${SOURCE_FILES})
